package de.slothsoft.wasbinich.core;

import java.io.Serializable;

public class Picture implements Serializable {

    private static final long serialVersionUID = 6838081216942214278L;

    public String section;
    public String bigPicture;
    public String[] correctAnswers;
    public String description;

    public Picture() {
	super();
    }

    public Picture(String section, String bigPicture, String[] correctAnswers, String description) {
	this.section = section;
	this.bigPicture = bigPicture;
	this.correctAnswers = correctAnswers;
	this.description = description;
    }

    @Override
    public String toString() {
	return this.correctAnswers == null || this.correctAnswers.length == 0 ? this.description
		: this.correctAnswers[0];
    }
}
